<extend name="Public/base" />
<block name="body">
<div class="m-tab s-tab">
	<h2 class="u-tt">{$meta_title}管理</h2>
	<div class="filter">
	</div>
	<ul>
		<li class="z-crt"><a href="#">{$meta_title}</a></li>
		<li><a href="{:U('addhook')}">新增钩子</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th width="60">ID</th>
			<th class="cold">名称</th>
			<th>描述</th>
			<th class="colb">类型</th>
			<th class="colc">操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
			<td>{$vo.id}</td>
			<td><a href="{:U('edithook?id='.$vo['id'])}">{$vo.name}</a></td>
			<td>{$vo.description}</td>
			<td>{$vo.type_text}</td>
			<td><a href="{:U('edithook?id='.$vo['id'])}">编辑</a> / <a href="javascript:;" data="{$vo.id}" class="u-del-id">删除</a></td>
		</tr>
		</volist>
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page"> {$_page} </div>
</div>
</block>

<block name="script">
<script>
Do.ready('base','dialog',function() {
	$('#table').duxTable({
		selectAll:'#selectAll',
		deleteUrl:'{:U("delhook")}'
	});
});
</script>
</block>